//
//  DTUIPullToRefresh.h
//  PersonalManager
//
//  Created by user on 16/8/15.
//  Copyright © 2016年 Haiyun.Qian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DTJavascriptCommand.h"

@class DTWebViewController;
@interface DTUIPullToRefresh : UIViewController

@property (nonatomic, strong) UISwipeGestureRecognizer *recognizer;
@property (nonatomic, strong) DTJavascriptCommand      *command;
@property (nonatomic, strong) DTWebViewController * commandVC;

-(instancetype)init: (DTJavascriptCommand *)command;
//启用下拉刷新
-(void)enable:(DTJavascriptCommand *)command;
//收起下拉loading
-(void)stop:(DTJavascriptCommand *)command;
//禁用下拉刷新
-(void)disable:(DTJavascriptCommand *)command;


@end
